home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / fig2mf / README < prev    next >
Text File  |  1993-03-18  |  2KB  |  79 lines

  1. Here is fig2MF, a tool to convert fig 2.1 input to METAFONT. The 
  2. generated METAFONT code uses the mfpic macros.
  3.  
  4. Fig2MF should compile with any C compiler known to man. Under Unix,
  5. just say:
  6.  
  7.     make fig2MF
  8.  
  9. Usage is straightforward:
  10.  
  11.     fig2mf file.fig >foo.mf
  12.     mf '\mode:=localfont; input foo.mf'
  13.     tex '\font\foo=foo \foo \char33 \bye'
  14.  
  15. In order to use the font you've just created, you must
  16. place the mfpic macros where METAFONT will find them, and
  17. adjust your TeX environment to recognize the .tfm and
  18. .gf files. You may also convert the .gf file to .pk format.
  19.  
  20.  
  21. Fig2MF has a few options:
  22.  
  23. Option    Default Description
  24. ------------------------------------------------------------------------
  25. -mag       1000   Font magstep
  26. -code       32     Initial METAFONT font code value
  27. -pen       0.5    Size of the METAFONT pen (points)
  28. -xscale   0.125  x coordinate scaling factor
  29. -yscale   0.125  y coordinate scaling factor
  30. -xneg       0.0    Minimum x coordinate value of the figure (inches)
  31. -xpos       8.0    Maximum x coordinate value of the figure (inches)
  32. -yneg       0.0    Minimum y coordinate value of the figure (inches)
  33. -ypos       8.0    Maximum y coordinate value of the figure (inches)
  34. -top       8.0    Top of the whole coordinate system (inches)
  35. -----------------------------------------------------------------------
  36.  
  37. The options are specified in the form of -opt=value. For example:
  38.  
  39.     fig2MF -xscale=0.25 -xpos=4.0 foo.fig
  40. --------------------------------------------------------------------------
  41.  
  42. Enclosed is:
  43.  
  44. fig2MF.c        source code
  45. fig2MFman.tex        manual
  46. graphbase.mf        mfpic macros
  47. tf            shell script to test new fonts
  48.  
  49. Samples fig files:
  50.  
  51. alltypes.fig
  52. balls.fig
  53. bean.fig
  54. book.fig
  55. chase.fig
  56. face.fig
  57. house.fig
  58. many.fig
  59. mitsu.fig
  60. parc-place.fig
  61. plane.fig
  62. powells.fig
  63. qd.fig
  64. shade.fig
  65. thick.fig
  66. type.fig
  67.  
  68. --------------------------------------------------------------------------
  69.  
  70. Thanks go to Thomas Leathrum for creating the mfpic METAFONT macros.
  71. Geoffery Tobin contributed ideas, fruitful discussion and the 
  72. enhanced mfpic macros.
  73.  
  74. I'd dearly love to receive any bug fixes and enhancements. 
  75. ---
  76. Anthony Starks
  77. ajs@merck.com
  78.  
  79.